<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*
            一维数组
                    [1,2,3,4,5,6]
                    arr[0]

            二维 
                [
                    [9,8],
                    [7,6]
                ]  
                
                arr[0]->  [9,8]
                arr[0][0] ->9
        
        */
        var arr = [
            [9, 8],
            [7, 6]
        ]
        console.log(arr);
        // console.log(arr[0][0]);
        // console.log(arr[0][1]);

        // console.log(arr[1][0]);
        // console.log(arr[1][1]);

        for (var i = 0; i < arr.length; i++) {
            var brr = arr[i];
            console.log(brr);
            // 遍历brr
            for (var j = 0; j < brr.length; j++) {
                console.log(brr[j]);
            }
        }



    </script>

</body>

</html>